<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>

<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="project1">
	 <tr class="li_1">
      <td align="left" class="t_bar">
      <span class="color_red">*</span><strong><span id="summary">立项背景</span></strong>（限3000字）
      </td>
    </tr>
    <tr class="li_2">
      <td>
		<textarea rows="8" style="width: 878px;"  class="input_textarea required  maxlength:3000" maxlength="3000"  name='proposal/goal/summary' label="立项背景"><x:out select="$xmlData/data/proposal/goal/summary"/></textarea>
	   <input type='hidden' name='proposal/goal/summary_hidden' id='proposal/goal/summary_hidden' value=''>
	  </td>
    </tr>
</table>
<br/>
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="project3">
	 <tr class="li_1">
      <td align="left" class="t_bar">
      <span class="color_red">*</span><strong><span id="summary3">主要技术发明点</span></strong>（限3000字）
      <input type="hidden" name="proposal/goal/summary3_text"  id="summary3"    value="<x:out select="$xmlData/data/proposal/goal/summary3_text" />"  />
      </td>
    </tr>
    <tr class="li_2">
      <td>
		<textarea rows="8" style="width: 878px;"  class="input_textarea required  maxlength:3000" name='proposal/goal/summary3' label="主要技术发明点"><x:out select="$xmlData/data/proposal/goal/summary3"/></textarea>
	   <input type='hidden' name='proposal/goal/summary3_hidden' id='proposal/goal/summary3_hidden' value=''>
	  </td>
    </tr>
</table>
<br/>
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="project4">
	 <tr class="li_1">
      <td align="left" class="t_bar">
      <span class="color_red">*</span><strong><span id="summary4">与当前国内外同类技术主要参数、效益、市场竞争力的比较</span></strong>（限3000字）
      <input type="hidden" name="proposal/goal/summary4_text"  id="summary4"    value="<x:out select="$xmlData/data/proposal/goal/summary4_text" />"  />
      </td>
    </tr>
    <tr class="li_2">
      <td>
		<textarea rows="8" style="width: 878px;"  class="input_textarea required  maxlength:3000" name='proposal/goal/summary4' label="与当前国内外同类技术主要参数、效益、市场竞争力的比较"><x:out select="$xmlData/data/proposal/goal/summary4"/></textarea>
	   <input type='hidden' name='proposal/goal/summary4_hidden' id='proposal/goal/summary4_hidden' value=''>
	  </td>
    </tr>
</table>
<br/>
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="project5">
	 <tr class="li_1">
      <td align="left" class="t_bar">
      <span class="color_red" >*</span><strong><span id="summary5">应用情况</span></strong>（限3000字）
      <input type="hidden" name="proposal/goal/summary5_text"  id="summary5"    value="<x:out select="$xmlData/data/proposal/goal/summary5_text" />"  />
      </td>
    </tr>
    <tr class="li_2">
      <td>
		<textarea rows="8" style="width: 878px;"  class="input_textarea required  maxlength:3000"  name='proposal/goal/summary5' label="应用情况"><x:out select="$xmlData/data/proposal/goal/summary5"/></textarea>
	   <input type='hidden' name='proposal/goal/summary5_hidden' id='proposal/goal/summary5_hidden' value=''>
	  </td>
    </tr>
</table>
  <br/> 
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="project6"> 
	<tr class="li_2">
		<td align="left" class="t_bar"><strong>经济效益&nbsp;&nbsp;&nbsp;&nbsp;<span style="text-align: right">单位： 万元（人民币）</span></strong></td>
	</tr>
	<tr>
		<td><table class="table01 t_css" border="0" width="100%"
				cellspacing="0" cellpadding="0"  
				style="table-layout: fixed; word-break: break-all; word-wrap: break-word">

				<col style="width: 20%" />
				<col style="width: 20%" />
				<col style="width: 20%" />
				<col style="width: 20%" />
        		<col style="width: 20%" />
				<tr>
					<td  align="right"><span class="color_red" >*</span>项目总投资额：</td>
					<td colspan="2">
						<input name="proposal/goal/gross_investment" id="gross_investment" type="text" label="经济效益-->项目总投资额" class="input_text required" onfocus="InitInput.setNumber(this,7,4,2)" style="width:100px;margin-left:30px;text-align: right;" value="<x:out select="$xmlData/data/proposal/goal/gross_investment" />"/>
					</td>
					<td  align="right"><span class="color_red" >*</span>回收期（年）：</td>
					<td >
						<input name="proposal/goal/payback_time" id="payback_time" type="text" label="经济效益-->回收期" class="input_text required" onfocus="InitInput.setNumber(this,3,0,0)" style="width:100px;margin-left:30px;text-align: right;" value="<x:out select="$xmlData/data/proposal/goal/payback_time" />"/>
					</td>
				</tr> 
				<tr>
					<td align="center" rowspan="2">年份</td>
					<td align="center" colspan="4">栏目</td>
				</tr>

        <tr>
					<td align="center"><span class="color_red" >*</span>新增利润</td>
					<td align="center"><span class="color_red" >*</span>新增税收</td>
					<td align="center"><span class="color_red" >*</span>创收外汇（美元）</td>
					<td align="center"><span class="color_red" >*</span>节支总额</td>
				</tr>
				
				
				<c:set var="statYear">${year}</c:set>
				<c:if test="${empty statYear}">
					<c:set var="statYear">
						<x:out select="$xmlData/data/proposal/stat_year" />
					</c:set>
				</c:if>

				<!-- 第一行 -->
				<tr>
					<td align="center"><span class="color_red" >*</span>${statYear-3}</td>
					<td align="center"><input type="text" id="new_output3"
						name="prj_economy/new_output3"
						label="经济效益-->${statYear-3}年-->栏目-->新增利润"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						value="<x:out select="$xmlData/data/prj_economy/new_output3" />"
						onchange="countFundAuto('new_output','1,2,3','4');"
						style="text-align: right; width:100px" /></td>

					<td align="center"><input type="text" id="new_profit3"
						label="经济效益-->${statYear-3}年-->栏目-->新增税收"
						style="text-align: right; width:100px"
						name="prj_economy/new_profit3"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						onchange="countFundAuto('new_profit','1,2,3','4');"
						value="<x:out select="$xmlData/data/prj_economy/new_profit3" />" /></td>

					<td align="center"><input type="text" id="new_output3_other"
						name="prj_economy/new_output3_other"
						label="经济效益-->${statYear-3}年-->栏目-->创收外汇"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						value="<x:out select="$xmlData/data/prj_economy/new_output3_other" />"
						onchange="countFundAuto('new_output','1_other,2_other,3_other','4_other');"
						style="text-align: right; width:100px" /></td>

					<td align="center"><input type="text" id="new_profit3_other"
						label="经济效益-->${statYear-3}年-->栏目-->节支总额"
						style="text-align: right; width:100px"
						name="prj_economy/new_profit3_other"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						onchange="countFundAuto('new_profit','1_other,2_other,3_other','4_other');"
						value="<x:out select="$xmlData/data/prj_economy/new_profit3_other" />" /></td>
				</tr>


				

       <!-- 第二行 -->

				<tr>
					<td align="center"><span class="color_red" >*</span>${statYear-2}</td>
					<td align="center"><input type="text" id="new_output2"
						label="经济效益-->${statYear-2}年-->栏目-->新增利润"
						name="prj_economy/new_output2"
						style="text-align: right; width:100px"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						value="<x:out select="$xmlData/data/prj_economy/new_output2" />"
						onchange="countFundAuto('new_output','1,2,3','4');" /></td>

					<td align="center"><input type="text" id="new_profit2"
						label="经济效益-->${statYear-2}年-->栏目-->新增税收"
						name="prj_economy/new_profit2"
						style="text-align: right; width:100px"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						onchange="countFundAuto('new_profit','1,2,3','4');"
						value="<x:out select="$xmlData/data/prj_economy/new_profit2" />" /></td>

					<td align="center"><input type="text" id="new_output2_other"
						label="经济效益-->${statYear-2}年-->栏目-->创收外汇"
						name="prj_economy/new_output2_other"
						style="text-align: right; width:100px"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						value="<x:out select="$xmlData/data/prj_economy/new_output2_other" />"
						onchange="countFundAuto('new_output','1_other,2_other,3_other','4_other');" /></td>

					<td align="center"><input type="text" id="new_profit2_other"
						label="经济效益-->${statYear-2}年-->栏目-->节支总额"
						name="prj_economy/new_profit2_other"
						style="text-align: right; width:100px"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						onchange="countFundAuto('new_profit','1_other,2_other,3_other','4_other');"
						value="<x:out select="$xmlData/data/prj_economy/new_profit2_other" />" /></td>
				</tr>


    <!-- 第三行 -->
      
      <tr>
					<td align="center"><span class="color_red" >*</span>${statYear-1}</td>

					<td align="center"><input type="text" id="new_output1"
						name="prj_economy/new_output1"
						style="text-align: right; width:100px"
						value="<x:out select="$xmlData/data/prj_economy/new_output1" />"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						label="经济效益-->${statYear-1}年-->栏目-->新增利润"
						onchange="countFundAuto('new_output','1,2,3','4');" /></td>

					<td align="center"><input type="text" id="new_profit1"
						name="prj_economy/new_profit1"
						style="text-align: right; width:100px"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						label="经济效益-->${statYear-1}年-->栏目-->新增税收"
						onchange="countFundAuto('new_profit','1,2,3','4');"
						value="<x:out select="$xmlData/data/prj_economy/new_profit1" />" /></td>

					<td align="center"><input type="text" id="new_output1_other"
						name="prj_economy/new_output1_other"
						style="text-align: right; width:100px"
						value="<x:out select="$xmlData/data/prj_economy/new_output1_other" />"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						label="经济效益-->${statYear-1}年-->栏目-->创收外汇"
						onchange="countFundAuto('new_output','1_other,2_other,3_other','4_other');" /></td>

					<td align="center"><input type="text" id="new_profit1_other"
						name="prj_economy/new_profit1_other"
						style="text-align: right; width:100px"
						onfocus="InitInput.setNumber(this,7,4,2,null,true)"  class="required"
						label="经济效益-->${statYear-1}年-->栏目-->节支总额"
						onchange="countFundAuto('new_profit','1_other,2_other,3_other','4_other');"
						value="<x:out select="$xmlData/data/prj_economy/new_profit1_other" />" /></td>
				</tr>
      
				
				<!-- 第四行 -->
				<tr>
					<td align="center">累计</td>
					<td align="center"><input id="new_output4"
						name="prj_economy/total_output" class="gray"
						style="text-align: right; width:100px" disabled="disabled"
						value="<x:out select="$xmlData/data/prj_economy/total_output" />" /></td>


					<td align="center"><input id="new_profit4"
						name="prj_economy/total_profit" class="gray"
						style="text-align: right; width:100px" disabled="disabled"
						value="<x:out select="$xmlData/data/prj_economy/total_profit" />" /></td>



					<td align="center"><input id="new_output4_other"
						name="prj_economy/total_output_other" class="gray"
						style="text-align: right; width:100px" disabled="disabled"
						value="<x:out select="$xmlData/data/prj_economy/total_output_other" />" /></td>


					<td align="center"><input id="new_profit4_other"
						name="prj_economy/total_profit_other" class="gray"
						style="text-align: right; width:100px" disabled="disabled"
						value="<x:out select="$xmlData/data/prj_economy/total_profit_other" />" /></td>
						
				</tr>
				</table>
				<table class="table01 t_css" border="0" width="100%"
				cellspacing="0" cellpadding="0"  id="pri_info_zjjjxy"
				style="table-layout: fixed; word-break: break-all; word-wrap: break-word">

				<col style="width: 25%" />
				<col style="width: 25%" />
				<col style="width: 25%" />
				<col style="width: 25%" />
				<tr>
					<td colspan="6" align="left">各栏目的计算依据 （限200字）：</td>
				</tr>
				<tr>
					<td colspan="6"><textarea rows="8" style="width: 873px;" name='proposal/prj_info/calc_base' class="input_textarea maxlength:200" label="各栏目的计算依据 "><x:out select="$xmlData/data/proposal/prj_info/calc_base" /></textarea> 
						<input type="hidden" name="proposal/prj_info/calc_base_hidden" value="" />
					</td>
				</tr>
				
			</table></td>

	</tr>

</table>
  <br/>  
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="project7">
	 <tr class="li_1">
      <td align="left" class="t_bar">
      <span class="color_red">*</span><strong><span id="summary7">社会效益</span></strong>（限500字）
      <input type="hidden" name="proposal/goal/summary7_text"  value="<x:out select="$xmlData/data/proposal/goal/summary7_text" />"  />
      </td>
    </tr>
    <tr class="li_2">
      <td>
		<textarea rows="8" style="width: 878px;"  class="input_textarea required  maxlength:500" name='proposal/goal/summary7' label="社会效益"><x:out select="$xmlData/data/proposal/goal/summary7"/></textarea>
	   <input type='hidden' name='proposal/goal/summary7_hidden' id='proposal/goal/summary7_hidden' value=''>
	  </td>
    </tr>
</table> 
<br/>
<table class="t_css table01" width="100%" border="0" cellpadding="0"
	cellspacing="1" id="prpProduct_text">
	 <tr class="li_1">
      <td align="left" class="t_bar"><span class="color_red">*</span><strong><span id="particular">详细的技术内容，包括总体思路、技术方案、实施效果等 </span></strong>(所有文字、图片等资料总页数不超过10页)</td>
    </tr>
     <tr>
		<td><b>请按如下步骤完成<span id="particular">详细技术</span>内容填写：</b></td>
	  </tr>
	  <tr>
			<td>第一步： 下载<span id="particular">详细技术</span>内容模板；
		  <c:set var="template">详细技术内容2.doc</c:set> 
			<c:if test="${not empty template}">
					&nbsp;&nbsp;<a href="#"  id="downloadTemplate"    onclick="return ContentDownDesc('${template}');" class="link_x">
					<img alt="" src="${res}/images/ico_word.gif">详细技术内容</a>&nbsp;&nbsp;
			</c:if>
	  </tr>
	  <tr>
			<td>第二步： 根据模板离线填写<span id="particular">详细技术</span>内容；</td>
	  </tr>
	  <tr>
			<td>第三步： 上传填写完的<span id="particular">详细技术</span>内容（支持PDF格式文件）。</td>
	  </tr>
    
    <tr>
		<td>
			<div class="text_box">
				<input type="file" name="filedata" /><br />
				<br/> 
				<span class="font333">注：建议上传非加密<span
					class="link_x ico_pdf" /><span
					style="color: #c80000; font-size: 14px; font-weight: bold;">PDF格式</span>的<span id="particular">详细技术</span>内容电子文档，以便系统更好生成报告PDF电子文件。
				</span>
			</div> 
			<input type="hidden" id="uploadTypeKeyContentqhh" value="proposal_content," /> 
 			<input type="hidden" id="file_code" name="content/file_code" class="required" value="<x:out select="$xmlData/data/content/file_code" />" />
		</td>
	</tr>
	<c:set var="file_code">
		<x:out select="$xmlData/data/content/file_code" />
	</c:set>
	<c:set var="file_code"><x:out select="$xmlData/data/content/file_code" /></c:set>
	<tr id="uploadsuccess" <c:if test="${file_code==''}" >style="display:none" </c:if> >
		<td>
			<input type="hidden" id="fileNameHidqhh" value="<x:out select="$xmlData/data/content/file_name" />"/>
			您已经上传<span id="particular">详细技术</span>内容：<a id="content_downLoadFile" href="${ctx}/file/ajax-filedownload?fileCode=<x:out select="$xmlData/data/content/file_code" />" class="link_x" ><span name="content/file_name" id="file_name"><x:out select="$xmlData/data/content/file_name" /></span></a>&nbsp;&nbsp;(上传时间<span name="content/file_date" id="file_date"><x:out select="$xmlData/data/content/file_date" /></span>) <a href="###" class="link_x" onclick="delContent('prpProduct_text')">删除</a>
		</td>
	</tr>
</table>
<script type="text/javascript">
$(function($) {
	var fileObj = $("#feaReport_upload").find("span[name$='file_name']");
	var fileName = $("#fileNameHidqhh").val();// 获得文件名
	var start = fileName.substring(0, fileName.indexOf("."));// 获得前缀
	var end = fileName
			.substring(fileName.indexOf(".") + 1, fileName.length);// 获得后缀
	var image = "";
	$("#contentImage").remove();
	if (end.toLowerCase() == "doc" || end.toLowerCase() == "docx") {
		image = "<img id=\"contentImage\" src=\"" + res
				+ "/images/ico_word.gif\">";
	} else if (end.toLowerCase() == "pdf") {
		image = "<img id=\"contentImage\" src=\"" + res
				+ "/images/ico_pdf.gif\">";
	} else if (end.toLowerCase() == "wps") {
		image = "<img id=\"contentImage\" src=\"" + res
				+ "/images/ico_wps.gif\">";
	}
	fileObj.before(image);
	fileObj.html(fileName);
});
/**
 * 下载可行性报告 将抽取至public.js 中
 */
 function ContentDownDesc(template) {
	window.open("${res_app}/template/content/"
			+ encodeURIComponent(template));

}
</script>
